package com.caipiao.mapper;

import com.caipiao.pojo.SIntegral;

import java.util.List;
import java.util.Map;

/**
 * Created by yangweijian on 2018/1/18.
 */
public interface SIntegralMapper {
    //添加积分记录
    void insertIntegralByMap(Map<String, Object> map);
    //查询签到记录
    List<SIntegral> selectSingnListByUserId(String userId);
    //查询积分记录
    List<SIntegral> selectIntegralByUserId(Map<String, Object> map);
//    //查询积分支出
//    List<SIntegral> selectIntegralByUserId2(String userId);
    //查询今日是否签到
    Integer selectIntegralToday(String userId);
    //修改积分
    void updateIntegral(SIntegral sIntegral);

    Float selectSumIntegral(SIntegral sIntegral);
}
